package com.king.demo.service.impl;

import com.king.demo.interfaces.ServiceInterface;
import com.king.demo.service.interfaces.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class TestServiceImpl implements TestService {

    @Autowired
    ServiceInterface serviceInterface;

    @Autowired
    @Qualifier("shopFrontServiceInterface")
    ServiceInterface shopFrontServiceInterface;

    @Override
    public void service() {
        serviceInterface.test("This is a test service ");
        shopFrontServiceInterface.test("代理服务");
    }
}
